//
//  MainAreaHeaderView.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/20.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "MainAreaHeaderView.h"

@implementation MainAreaHeaderView
{
    GLGWLabel *labe;
}

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        GLGWView *baV = [[GLGWView alloc] initWithInSuperView:self.contentView];
        baV.backgroundColor = [UIColor colorWithHexString:@"#F2F2F2"];
        [baV mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.bottom.equalTo(self.contentView);
        }];
        
        GLGWLabel *lab = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(16) theColor:[UIColor colorWithHexString:@"#000000"] inSuperView:baV];
        lab.text = @"A";
        [lab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(baV.mas_centerY);
            make.left.equalTo(baV.mas_left).offset(kWidthProportion_In_iPhoneTriploid(21));
        }];
        labe = lab;
    }
    return self;
}

- (void)setLeftStr:(NSString *)leftStr
{
    _leftStr = leftStr;
    labe.text = leftStr;
}

@end
